package com.group.entity.wms;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;

import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * 商品分类
 */
@TableName("wms_classify")
public class ClassifyEntity {
    /**
     * 商品分类id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 商品分类名称
     */
    @NotNull(message = "商品分类名称不能为空")
    private String classifyName;
    /**
     * 商品分类创建者
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long createUser;
    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 备注
     */
    private String remark;

    /**
     * 最后一次修改时间
     */
    private Date lastUpdateTime;
    /**
     * 最后一次修改人
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long lastUpdateUser;

    /**
     * 商品分类条码
     */
    @NotNull(message = "商品条码不能为空")
    private String classifyBarCod;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getClassifyName() {
        return classifyName;
    }

    public void setClassifyName(String classifyName) {
        this.classifyName = classifyName;
    }

    public Long getCreateUser() {
        return createUser;
    }

    public void setCreateUser(Long createUser) {
        this.createUser = createUser;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Date getLastUpdateTime() {
        return lastUpdateTime;
    }

    public void setLastUpdateTime(Date lastUpdateTime) {
        this.lastUpdateTime = lastUpdateTime;
    }

    public Long getLastUpdateUser() {
        return lastUpdateUser;
    }

    public void setLastUpdateUser(Long lastUpdateUser) {
        this.lastUpdateUser = lastUpdateUser;
    }

    public String getClassifyBarCod() {
        return classifyBarCod;
    }

    public void setClassifyBarCod(String classifyBarCod) {
        this.classifyBarCod = classifyBarCod;
    }
}
